<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  /* https://www.jianshu.com/p/4943ae92b812 css 样式 */
  @media print {
    @page {
      /*A4: 210mm × 297mm，size: 794px × 1123px，0边距*/
      /*171.9mm × 258.9mm，size：649px × 978px，19.05mm边距（ie浏览器默认打印边距） */
      size: 210mm 297mm;
    }
  }
</style>

<body>
  <script type="module" src="./index.js"></script>
</body>

</html>